<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title></title>
        <style type="text/css">
            body{
                height: 100vh;
            }
        </style>
    </head>
    <body>
        <script src="wtEvent.js" type="text/javascript"></script>
        <script type="text/javascript">
            var body = document.querySelector("body");

            wt.init(body);
            var num = 0;
            body.addEvent("swiperBottom",function(e){
                console.log(e);
                num++;
                var h1 = document.createElement("h1");
                h1.innerHTML = "下滑刷新"+num;
                body.appendChild(h1);
            })
        
        
        </script>
    </body>
</html> 